﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Salomon/MP/Base.Master" AutoEventWireup="true" CodeBehind="FocusList.aspx.cs" Inherits="WebsiteAdmin.Salomon.Focus.FocusList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Head_Title" runat="server">幻灯片 - 广告</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Head_Meta" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Head_Css" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Head_Script" runat="server">
<script type="text/javascript" language="javascript">
		var MenuViewID = 3;
		//根据PKID删除幻灯片
		function DeleteFocus(pkid, title) {
		    new Request.JSON({
		    url: 'Handler/Delete.ashx',
		        method: 'post',
		        data: {
		            PKID: pkid
		        },
		        onSuccess: function(json) {
		            if (json.Done == 'Success') {
		                alert('幻灯片：\"' + title + '\"删除成功');
		                location.reload(location.href);  //删除成功后刷新页面
		            } else {
		                alert('幻灯片：\"' + title + '\"删除失败，请再次删除');
		            }
		        }
		    }).send();
		}
</script>
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Body_Top" runat="server">
</asp:Content>
<asp:Content ID="Content6" ContentPlaceHolderID="Body_Content" runat="server">
     <div class="infobox">
        <h3>
            <span>幻灯片管理</span>
            <a href="/Salomon/Focus/FocusCreate.aspx" class="back action">新建</a>
        </h3>
        <div class="pd05">   
            <table border="0" cellpadding="0" cellspacing="1" id="tablegrid" class="tb">
			    <thead>
			    <tr>
				    <th width="40">&nbsp;</th>
				    <th width="100">代号</th>
				    <th>标题名称</th>
				    <th width="40">排序</th>
				    <th width="200">日期</th>
				    <th width="40">&nbsp;</th>
				    <th width="40">&nbsp;</th>
			    </tr>
			    </thead>
			    <tbody>
			    <asp:Repeater ID="repFocusList" runat="server" EnableViewState="false">
			        <ItemTemplate>
			            <tr>
				            <td><%#Eval("RowId") %></td>
				            <td>ss</td>
				            <td><a class="action" href="javascript:alert('新窗口图片链接');"><%#Eval("FocusTitle") %></a></td>
				            <td><%#Eval("SortBy")%></td>
				            <td><%#Eval("StartDate","{0:d}") %> ~ <%#Eval("EndDate", "{0:d}")%></td>
				            <td>
					            <a href="/Salomon/Focus/FocusEdit.aspx?pkid=<%#Eval("PKID") %>">修改</a>
				            </td>
				            <td>
					            <a href="javascript:DeleteFocus('<%#Eval("PKID") %>','<%#Eval("FocusTitle") %>');">删除</span></a>
				            </td>
			            </tr>    
			        </ItemTemplate>
			    </asp:Repeater>
			    </tbody>
            </table>
        </div>
    </div>

</asp:Content>
<asp:Content ID="Content7" ContentPlaceHolderID="Body_Foot" runat="server"  >
</asp:Content>